package com.skyline.base.model;

import com.skyline.base.type.NotificationType;
import com.skyline.common.cache.Cachable;

/**
 * 通知的POJO
 * 
 * @author Jairus Chan
 * @version 0.1
 * */
public class Notification  implements TokenValidatable, Cachable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8298497919114329404L;
	private Long id;
	private Long ownerId;
	private Long notifierId;
	private String notifierNickname;
	private Long secondNotifierId;
	private String secondNotifierNickname;
	private Long resourceId;
	private String resourceTitle;
	private NotificationType type;
	private String submitToken;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(Long ownerId) {
		this.ownerId = ownerId;
	}

	public Long getNotifierId() {
		return notifierId;
	}

	public void setNotifierId(Long notifierId) {
		this.notifierId = notifierId;
	}

	public String getNotifierNickname() {
		return notifierNickname;
	}

	public void setNotifierNickname(String notifierNickname) {
		this.notifierNickname = notifierNickname;
	}

	public Long getSecondNotifierId() {
		return secondNotifierId;
	}

	public void setSecondNotifierId(Long secondNotifierId) {
		this.secondNotifierId = secondNotifierId;
	}

	public String getSecondNotifierNickname() {
		return secondNotifierNickname;
	}

	public void setSecondNotifierNickname(String secondNotifierNickname) {
		this.secondNotifierNickname = secondNotifierNickname;
	}

	public Long getResourceId() {
		return resourceId;
	}

	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}

	public String getResourceTitle() {
		return resourceTitle;
	}

	public void setResourceTitle(String resourceTitle) {
		this.resourceTitle = resourceTitle;
	}

	public NotificationType getType() {
		return type;
	}

	public void setType(NotificationType type) {
		this.type = type;
	}

	@Override
	public String getFkId() {
		return this.ownerId.toString();
	}

	@Override
	public String getSubmitToken() {
		return this.submitToken;
	}

	@Override
	public void setSubmitToken(String submitToken) {
		this.submitToken=submitToken;
	}
}
